<?php

/**
 * This file is part of Swow
 *
 * @link    https://github.com/swow/swow
 * @contact twosee <twosee@php.net>
 *
 * For the full copyright and license information,
 * please view the LICENSE file that was distributed with this source code
 */

declare(strict_types=1);

namespace Swow\Stream;

class MessageTooLargeException extends StreamException
{
    public function __construct(int $length, int $maxLength)
    {
        parent::__construct("Message length {$length} exceeds the max length {$maxLength}");
    }
}
